﻿using System.Windows.Forms;

namespace Inaction.UI.Extensions.API
{
    public class MessageFilter : IMessageFilter
    {
        public bool PreFilterMessage(ref System.Windows.Forms.Message m)
        {
            if (FilterMessageEvent != null)
            {
                FilterMessageEvent(m);
            }
            return false;
        }

        public delegate void FilterMessageDelegate(System.Windows.Forms.Message msg);

        public event FilterMessageDelegate FilterMessageEvent;
    }
}
